<%@ page language="java" pageEncoding="UTF-8"%>
<script type="text/javascript">
	$(function() {
		$('#student_attendanceAdd_courseCombobox').combobox({
			valueField : 'id',
			textField : 'courseName',
			editable:false,
			onSelect : function(rec) {
				$('#student_attendanceAdd_addAttendanceForm input[name=courseId]').val(rec.id);
			}
		});
		$('#student_attendanceAdd_classTypeCombobox').combobox({
			valueField : 'cvalue',
			textField : 'cname',
			editable:false,
			onSelect : function(rec) {
				$('#student_attendanceAdd_addAttendanceForm input[name=classType]').val(rec.cvalue);
			}
		});
	});
</script>
<form id="student_attendanceAdd_addAttendanceForm" method="post">
	<table>
		<tr>
			<td style="text-align: right;">学生：</td>
			<td><input name="studentName" class="easyui-validatebox" data-options="required:true,missingMessage:'必填项'" readonly="readonly" />&nbsp;
				<button type="button" onclick="openStudentDialog()">浏览</button>
			</td>
		</tr>
		<tr>
			<td style="text-align: right;">学号：</td>
			<td><input name="studentNo" readonly="readonly" />
			</td>
		</tr>
		<tr>
			<td style="text-align: right;">课程名称：</td>
			<td><input id="student_attendanceAdd_courseCombobox" name="courseName" class="easyui-combobox" data-options="required:true,missingMessage:'必填项'" style="width:240px;" /></td>
		</tr>
		<tr>
			<td style="text-align: right;">授课日期：</td>
			<td><input name="teachingDate" class="easyui-datebox" data-options="required:true,missingMessage:'必填项'" style="width:240px;" /></td>
		</tr>
		<tr>
			<td style="text-align: right;">授课时段：</td>
			<td><input id="student_attendanceAdd_classTypeCombobox" name="classTypeName" class="easyui-combobox" data-options="required:true,missingMessage:'必填项'" style="width:240px;" /></td>
		</tr>
		<tr>
			<td style="text-align: right;">出勤情况：</td>
			<td><input id="student_attendanceAdd_attendanceRadio" type="radio" name="attendanceFlag" value="01" checked="checked" />&nbsp;出勤
			 <input id="student_attendanceAdd_unattendanceRadio" type="radio" name="attendanceFlag" value="02" />&nbsp;缺勤</td>
		</tr>
		<tr>
			<td style="text-align: right;">请假情况：</td>
			<td><input id="student_attendanceAdd_leaveRadio" type="radio" name="leaveFlag" value="01" checked="checked" />&nbsp;请假
			 <input id="student_attendanceAdd_unleaveRadio" type="radio" name="leaveFlag" value="02" />&nbsp;未请假</td>
		</tr>
		<tr>
			<td style="text-align: right;">备注：</td>
			<td><textarea name="memo" style="width:240px;"></textarea></td>
		</tr>
	</table>
	<input name="studentId" type="hidden" />
	<input name="courseId" type="hidden" />
	<input name="classType" type="hidden" />
</form>